<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
    <title>质控管理</title>
    <link rel="shortcut icon" href="../../../image/icon.ico">
    <link rel="stylesheet" media="screen,print" href="../../../css/qualityControl.min.css">
</head>

<body>
    <!--导航栏-->
    <div class="nav clearfix"></div>

    <div class="main-content qualityControl clearfix">
        <div class="leftNav">
            <ul>
                <li class="active" val="quality-manage">
                    <a href="javascript:void ( 0 )" onclick="loadqulity()">
                        <img src="../../../image/zk_zkgl_press.png">
                        <span>质控管理</span>
                    </a>
                </li>
                <!-- <li val="quality-count">
                    <a href="javascript:void ( 0 )" onclick="loadcount()">
                        <img src="../../../image/zk_zktj_normal.png">
                        <span>质控统计</span>
                    </a>
                </li> -->
                <li val="batch-manage">
                    <a href="javascript:void ( 0 )" onclick="loadbatch()">
                        <img src="../../../image/zk_pcgl_normal.png">
                        <span>试纸批次管理</span>
                    </a>
                </li>
                <li val="KeepOnRecord-manage" class='KeepOnRecord-manage'>
                    <a href="javascript:void ( 0 )">
                        <img src="../../../image/zk_zhy_normal.png">
                        <span>质控液备案</span>
                    </a>
                </li>
            </ul>
        </div>
        <div class="rightBox">
            <!--质控管理-->
            <div class="quality-manage main-template-block hideItem">
                <div class="title-search">
                    <div class='seach'>
                        <img src="../../../image/home_search_icon.png">
                        <input type="text" value='' placeholder="试纸批次/设备IMEI/操作人员" class='condition'>
                    </div>
                    <div class="select">
                        <div class="triangle"></div>
                        <input type="button" status='' class="select-btn" readonly value="全部结果" />
                        <div class="list-show scrollBar" style="display: none;">
                            <ul class="select-list">
                                <li status=''>全部结果</li>
                                <li status='1'>合格</li>
                                <li status='2'>不合格</li>
                            </ul>
                        </div>
                    </div>
                    <span style="margin-left:10px;">测试日期：</span>
                    <div>
                        <input type="text" class="laydate-icon dateEx" name='dateEx' id="date1" readonly="readonly" onclick="laydate({elem:'#date1',format: 'YYYY-MM-DD'})">
                    </div>
                    <span style="margin-left:10px;"> 至 </span>
                    <div>
                        <input type="text" class="laydate-icon dateAf" name='dateAf' id="date2" readonly="readonly" onclick="laydate({elem:'#date2',format: 'YYYY-MM-DD'})">
                    </div>
                    <button class="btn searchBtn">搜索</button>
                    <button class="btn resetBtn">重置</button>
                    <button class="btn print-btn">打印</button>
                </div>
                <div class="quality-content">
                    <div class="content">
                        <table cellpadding="0" cellspacing="0">
                            <thead>
                                <tr>
                                    <td>质检日期</td>
                                    <td>试纸批次号</td>
                                    <td>使用期限</td>
                                    <td>开封日期</td>
                                    <td>L1范围(mmol/L)</td>
                                    <td>L1结果(mmol/L)</td>
                                    <td>L2范围(mmol/L)</td>
                                    <td>L2结果(mmol/L)</td>
                                    <td>设备IMEI号</td>
                                    <td>操作人员</td>
                                    <td>测试结果</td>
                                </tr>
                            </thead>
                            <tbody>
                                <script type="text/template" id="qulity-list-template">
                                    <%_.each(obj,function(e,i){%>

                                        <tr>
                                            <td>
                                                <%=(e.testTime?e.testTime.split(' ')[0]:'')%>
                                            </td>
                                            <td>
                                                <%=e.batchNo%>
                                            </td>
                                            <td>
                                                <%if(e.testPaperBatch&&e.testPaperBatch.useTime){%>
                                                    <%=e.testPaperBatch.useTime.split(' ')[0]%>
                                                        <%}%>
                                            </td>
                                            <td>
                                                <%if(e.testPaperBatch&&e.testPaperBatch.openTime){%>
                                                    <%=e.testPaperBatch.openTime.split(' ')[0]%>
                                                        <%}%>
                                            </td>
                                            <td>
                                                <%if(e.testPaperBatch){%>
                                                    <%=e.testPaperBatch.lowEx%> -
                                                        <%=e.testPaperBatch.lowAf%>
                                                            <%}%>
                                            </td>
                                            <td>
                                                <%=e.low%>
                                            </td>
                                            <td>
                                                <%if(e.testPaperBatch){%>
                                                    <%=e.testPaperBatch.highEx%> -
                                                        <%=e.testPaperBatch.highAf%>
                                                            <%}%>
                                            </td>
                                            <td>
                                                <%=e.high%>
                                            </td>
                                            <td>
                                                <%=e.imei%>
                                            </td>
                                            <td>
                                                <%=e.operateName%>
                                            </td>
                                            <td>
                                                <%if(e.status==1){%>合格
                                                    <%}else{%>
                                                        <span style="color:#e95959">不合格</span>
                                                        <%}%>
                                            </td>
                                        </tr>
                                        <%})%>
                                </script>
                            </tbody>
                        </table>
                    </div>
                </div>

                <div class="page"></div>
                <div class="print-page hideItem">
                    <div class="content">
                        <div class="title">
                            <span>血糖仪质控记录单</span>
                            <a class="cancelBtn"></a>
                        </div>
                        <div class="print-search">
                            <div class="select">
                                <div class="triangle"></div>
                                <input type="button" status='' id="choose-equipment" class="select-btn" readonly value="选择设备" />
                                <div class="list-show scrollBar" style="display: none;">
                                    <ul class="select-list">
                                        <script type="text/template" id="print-choose-equipment">
                                            <%_.each(obj,function(e,i){%>
                                                <li val="<%=e.deviceId%>">
                                                    <%=e.imei%>
                                                </li>
                                                <%})%>
                                        </script>
                                    </ul>
                                </div>
                            </div>
                            <div>
                                <input type="text" class="laydate-icon dateEx" name='dateEx' id="date15" readonly="readonly" onclick="laydate({elem:'#date15',format: 'YYYY-MM-DD'})">
                            </div>
                            <span style="margin-left:10px;"> 至 </span>
                            <div>
                                <input type="text" class="laydate-icon dateAf" name='dateAf' id="date16" readonly="readonly" onclick="laydate({elem:'#date16',format: 'YYYY-MM-DD'})">
                            </div>
                            <button class="btn-searchBtn">搜索</button>
                        </div>
                        <div class="print-content">

                            <div class="print-page-content">
                                <div class="gis-list">

                                    <div class="hospital-title" align="center" colspan="10">
                                        <p class="hospital-title-text"></p>
                                        <p>血糖仪质控记录单</p>
                                    </div>
                                    <div class="td-info">
                                        <div class="patient-info">
                                            <div class="item"><span>设备编码 ：</span>
                                                <span id="patient-info-item"></span>
                                            </div>

                                        </div>
                                    </div>
                                    <table cellspacing="0" cellpadding="0">

                                        <thead style="display:table-header-group;">
                                            <tr>
                                                <td rowspan="2" style="max-width: 30px;">质控日期</td>
                                                <td rowspan="2" style="max-width: 30px;">试纸批号</td>
                                                <td rowspan="2" style="max-width: 30px;">试纸有效期</td>
                                                <td colspan="4" style="max-width: 30px;">质控液中浓度(mmol/L)</td>
                                                <td colspan="4" style="max-width: 30px;">质控液高浓度(mmol/L)</td>
                                                <td rowspan="2" style="max-width: 30px;">是否合格</td>
                                                <td rowspan="2" style="max-width: 30px;">操作人</td>
                                                <td rowspan="2" style="max-width: 30px;">备注</td>
                                            </tr>
                                            <tr>
                                                <td>批号</td>
                                                <td>有效期</td>
                                                <td>正常范围</td>
                                                <td>质控结果</td>
                                                <td>批号</td>
                                                <td>有效期</td>
                                                <td>正常范围</td>
                                                <td>质控结果</td>
                                            </tr>
                                        </thead>
                                        <tbody id='kongcontent'>
                                            <script type="text/template" id="kongcontent-template">

                                                <%_.each(obj,function(e,i){%>
                                                    <tr>
                                                        <%if(e.testTime==null){%>
                                                            <td>
                                                                <%=e.testTime%>
                                                            </td>
                                                            <%}else{%>
                                                                <%=e.testTime = e.testTime.slice(0, e.testTime.indexOf(' '))%>
                                                                    <td>
                                                                        <%=e.testTime%>
                                                                    </td>
                                                                    <%}%>

                                                                        <td>
                                                                            <%=e.batchNo%>
                                                                        </td>
                                                                        <!--<td><%=e.useTime%></td>-->
                                                                        <%if(e.useTime==null){%>
                                                                            <td>
                                                                                <%=e.useTime%>
                                                                            </td>
                                                                            <%}else{%>
                                                                                <%=e.useTime = e.useTime.slice(0, e.useTime.indexOf(' '))%>
                                                                                    <td>
                                                                                        <%=e.useTime%>
                                                                                    </td>
                                                                                    <%}%>

                                                                                        <td>
                                                                                            <%=e.liquidNo%>
                                                                                        </td>
                                                                                        <!--<td><%=e.validity%></td>-->
                                                                                        <%if(e.validity==null){%>
                                                                                            <td>
                                                                                                <%=e.validity%>
                                                                                            </td>
                                                                                            <%}else{%>
                                                                                                <%=e.validity = e.validity.slice(0, e.validity.indexOf(' '))%>
                                                                                                    <td>
                                                                                                        <%=e.validity%>
                                                                                                    </td>
                                                                                                    <%}%>


                                                                                                        <%if(e.lowEx!==null){%>
                                                                                                            <td>
                                                                                                                <%=e.lowEx%>~
                                                                                                                    <%=e.lowAf%>
                                                                                                            </td>
                                                                                                            <%}else{%>
                                                                                                                <td></td>
                                                                                                                <%}%>

                                                                                                                    <%if(e.status==null){%>
                                                                                                                        <td>
                                                                                                                            <%=""%>
                                                                                                                        </td>
                                                                                                                        <%}else{%>
                                                                                                                            <td>
                                                                                                                                <%=e.status==1?"合格":"不合格"%>
                                                                                                                            </td>
                                                                                                                            <%}%>


                                                                                                                                <td>
                                                                                                                                    <%=e.hliquidNo%>
                                                                                                                                </td>
                                                                                                                                <!--<td><%=e.hvalidity%></td>-->
                                                                                                                                <%if(e.hvalidity==null){%>
                                                                                                                                    <td>
                                                                                                                                        <%=e.hvalidity%>
                                                                                                                                    </td>
                                                                                                                                    <%}else{%>
                                                                                                                                        <%=e.hvalidity = e.hvalidity.slice(0, e.hvalidity.indexOf(' '))%>
                                                                                                                                            <td>
                                                                                                                                                <%=e.hvalidity%>
                                                                                                                                            </td>
                                                                                                                                            <%}%>

                                                                                                                                                <%if(e.highEx!==null){%>
                                                                                                                                                    <td>
                                                                                                                                                        <%=e.highEx%>~
                                                                                                                                                            <%=e.highAf%>
                                                                                                                                                    </td>
                                                                                                                                                    <%}else{%>
                                                                                                                                                        <td></td>
                                                                                                                                                        <%}%>



                                                                                                                                                            <%if(e.hstatus==null){%>
                                                                                                                                                                <td>
                                                                                                                                                                    <%=""%>
                                                                                                                                                                </td>
                                                                                                                                                                <%}else{%>
                                                                                                                                                                    <td>
                                                                                                                                                                        <%=e.hstatus==1?"合格":"不合格"%>
                                                                                                                                                                    </td>
                                                                                                                                                                    <%}%>

                                                                                                                                                                        <%if(e.status==1&&e.hstatus==1){%>
                                                                                                                                                                            <td>合格</td>
                                                                                                                                                                            <%}else if(e.status==1&&e.hstatus==null){%>
                                                                                                                                                                                <td>合格</td>
                                                                                                                                                                                <%}else if(e.status==null&&e.hstatus==1){%>
                                                                                                                                                                                    <td>合格</td>
                                                                                                                                                                                    <%}else{%>
                                                                                                                                                                                        <td>不合格</td>
                                                                                                                                                                                        <%}%>

                                                                                                                                                                                            <%if(e.hoperateName===e.operateName){%>
                                                                                                                                                                                                <td>
                                                                                                                                                                                                    <%=e.hoperateName%>
                                                                                                                                                                                                </td>
                                                                                                                                                                                                <%}else if(e.hoperateName==null&&e.operateName==null){%>
                                                                                                                                                                                                    <td></td>
                                                                                                                                                                                                    <%}else if(e.hoperateName==null&&e.operateName!==null){%>
                                                                                                                                                                                                        <td>
                                                                                                                                                                                                            <%=e.operateName%>
                                                                                                                                                                                                        </td>
                                                                                                                                                                                                        <%}else if(e.hoperateName!==null&&e.operateName==null){%>
                                                                                                                                                                                                            <td>
                                                                                                                                                                                                                <%=e.hoperateName%>
                                                                                                                                                                                                            </td>
                                                                                                                                                                                                            <%}else{%>
                                                                                                                                                                                                                <td>
                                                                                                                                                                                                                    <%=e.operateName%><br/>
                                                                                                                                                                                                                        <%=e.hoperateName%>
                                                                                                                                                                                                                </td>
                                                                                                                                                                                                                <%}%>

                                                                                                                                                                                                                    <td></td>
                                                    </tr>
                                                    <% }) %>
                                                        <%for(var i=0;i<16-obj.length;i++){%>
                                                            <tr>
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>

                                                            </tr>
                                                            <% } %>
                                            </script>
                                        </tbody>
                                    </table>
                                    </script>
                                </div>
                            </div>

                        </div>
                        <div class="btn">
                            <!--<button class="exprotBtn">导出</button>-->
                            <button class="printBtn">打印</button>
                        </div>

                    </div>
                </div>



            </div>
            <!--质控统计-->
            <div class="quality-count main-template-block hideItem">统计</div>
            <!--批次管理-->
            <div class="batch-manage main-template-block hideItem">
                <div class="title-search">
                    <div class='allCondition'>
                        <div class='seach'>
                            <img src="../../../image/home_search_icon.png">
                            <input type="text" value='' placeholder="试纸批次" class='condition'>
                        </div>
                        <span style="margin-left:280px;">生产日期：</span>
                        <div>
                            <input type="text" class="laydate-icon dateEx" name='dateEx' id="date3" readonly="readonly" onclick="laydate({elem:'#date3',format: 'YYYY-MM-DD'})">
                        </div>
                        <span style="margin-left:10px;"> 至 </span>
                        <div>
                            <input type="text" class="laydate-icon dateAf" name='dateAf' id="date4" readonly="readonly" onclick="laydate({elem:'#date4',format: 'YYYY-MM-DD'})">
                        </div>
                        <button class="btn searchBtn">搜索</button>
                        <button class="btn resetBtn">重置</button>

                        <button class="batchBtn fr">新增批次</button>

                        <p style='width:100%;height:10px;'></p>

                        <span style="margin-left:0px;">采购日期：</span>
                        <div>
                            <input type="text" class="laydate-icon dateEx" name='dateEx' id="date5" readonly="readonly" onclick="laydate({elem:'#date5',format: 'YYYY-MM-DD'})">
                        </div>
                        <span style="margin-left:10px;"> 至 </span>
                        <div>
                            <input type="text" class="laydate-icon dateAf" name='dateAf' id="date6" readonly="readonly" onclick="laydate({elem:'#date6',format: 'YYYY-MM-DD'})">
                        </div>
                        <span style="margin-left:22px;">操作时间：</span>
                        <div>
                            <input type="text" class="laydate-icon dateEx" name='dateEx' id="date7" readonly="readonly" onclick="laydate({elem:'#date7',format: 'YYYY-MM-DD'})">
                        </div>
                        <span style="margin-left:10px;"> 至 </span>
                        <div>
                            <input type="text" class="laydate-icon dateAf" name='dateAf' id="date8" readonly="readonly" onclick="laydate({elem:'#date8',format: 'YYYY-MM-DD'})">
                        </div>
                    </div>
                </div>
                <div class="content">
                    <table class="list" cellpadding="0" cellspacing="0">
                        <thead>
                            <tr>
                                <td>试纸批次号</td>
                                <td>生产日期</td>
                                <td>使用期限</td>
                                <td>L1(mmol/L)</td>
                                <td>L2(mmol/L)</td>
                                <td>采购日期</td>
                                <td>开封日期</td>
                                <td>操作人员</td>
                                <td>操作时间</td>
                                <td>备注</td>
                                <td>操作</td>
                            </tr>
                        </thead>
                        <tbody>
                            <script type="text/template" id="batch-list-template">
                                <%_.each(obj,function(e,i){%>
                                    <tr>
                                        <td class="td1">
                                            <%=e.batchNo%>
                                        </td>
                                        <td class="td2">
                                            <%=e.productionTime?e.productionTime.split(' ')[0]:''%>
                                        </td>
                                        <td class="td3">
                                            <%=e.useTime?e.useTime.split(' ')[0]:''%>
                                        </td>
                                        <td class="td4"><span><%=e.lowEx%></span> - <span><%=e.lowAf%></span></td>
                                        <td class="td5"><span><%=e.highEx%></span> - <span><%=e.highAf%></span></td>
                                        <td class="td6">
                                            <%=e.buyTime?e.buyTime.split(' ')[0]:''%>
                                        </td>
                                        <td class="td7">
                                            <%=e.openTime?e.openTime.split(' ')[0]:''%>
                                        </td>
                                        <td class="td8">
                                            <%=e.operateName%>
                                        </td>
                                        <td class="td9">
                                            <%=e.operateTime?e.operateTime.split(' ')[0]:''%>
                                        </td>
                                        <td class="td10">
                                            <%=e.remark%>
                                        </td>
                                        <td class="td11 clearfix">
                                            <a href="javascript:void(0)" style='color:#1D9EEF' class="editBtn" batchId="<%=e.batchId%>">编辑</a>&nbsp;&nbsp;
                                            <a href="javascript:void(0)" style='color:#1D9EEF' class="delBtn" batchId="<%=e.batchId%>">删除</a>
                                        </td>
                                    </tr>
                                    <%})%>
                            </script>
                        </tbody>
                    </table>
                </div>
                <div class="page"></div>
                <div class="new-batch hideItem">
                    <div class="content">
                        <div class="title">
                            <span>新增批次</span><b style="font-weight: 100;font-size:12px;">（除备注外都是必填项）</b>
                            <a class="cancelBtn"></a>
                        </div>
                        <div class="text-content">
                            <div class="item">
                                <div class="second-item"><span>试纸批次号</span><input type="text" class="batchNo"></div>
                                <div class="second-item">
                                    <span>生产日期</span>
                                    <div class="timeBtn"><input id="productionTime" type="button" readonly onclick="laydate({elem:'#productionTime',format: 'YYYY-MM-DD'});" class="productionTime">
                                        <div class="triangle"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="item">
                                <span>试纸使用期限</span>
                                <div class="timeBtn">
                                    <input type="button" id="useTime" readonly onclick="laydate({elem:'#useTime',format: 'YYYY-MM-DD'});" class="useTime">
                                    <div class="triangle"></div>
                                </div>
                            </div>
                            <div class="item">
                                <div class="range-item">
                                    <span>L1</span>
                                    <input type="text" class="lowEx">
                                    <span>-</span>
                                    <input type="text" class="lowAf">
                                    <span style="width: auto;">mmol/L</span>
                                </div>
                                <div class="range-item">
                                    <span>L2</span>
                                    <input type="text" class="highEx">
                                    <span>-</span>
                                    <input type="text" class="highAf">
                                    <span style="width: auto;">mmol/L</span>
                                </div>
                            </div>
                            <div class="item">
                                <div class="second-item">
                                    <span>采购日期</span>
                                    <div class="timeBtn">
                                        <input type="button" id="buyTime" readonly onclick="laydate({elem:'#buyTime',format: 'YYYY-MM-DD'});" class="buyTime">
                                        <div class="triangle"></div>
                                    </div>
                                </div>
                                <div class="second-item">
                                    <span>开封日期</span>
                                    <div class="timeBtn">
                                        <input type="button" readonly id="openTime" onclick="laydate({elem:'#openTime',format: 'YYYY-MM-DD'});" class="openTime">
                                        <div class="triangle"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="item">
                                <span>备注</span>
                                <textarea placeholder="选填项" class="remark"></textarea>
                            </div>
                        </div>
                        <div class="tips" style="display: none;">错误提示！</div>
                        <div class="btn">
                            <button class="cancelBtn">取消</button>
                            <button class="sureBtn">确定</button>
                        </div>
                    </div>
                </div>

            </div>
            <!-- 质控液备案 -->
            <div class="KeepOnRecord-manage main-template-block">
                <div class="title-search clearfix">
                    <div class="search">
                        <img src="../../../image/home_search_icon.png">
                        <input type="text" placeholder="批次号" class="liquidNo">
                    </div>
                    <div class="select">
                        <!--会诊状态-->
                        <div class="triangle"></div>
                        <input type="button" class="select-btn state" readonly value="全部类型" status="" />
                        <div class="list-show scrollBar" style="display: none;">
                            <ul class="select-list">
                                <li val="">全部类型</li>
                                <li val="1">L1</li>
                                <li val="2">L2</li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn searchBtn">搜索</button>
                    <button class="btn resetBtn">重置</button>
                    <div class="cousultantsBtn">
                        <button class="btn addconsultants">新增备案</button>
                    </div>
                </div>
                <div class="content" id='IdentificationId' IdentificationId='true'>
                    <table cellspacing="0" cellpadding="0">
                        <thead>
                            <tr>
                                <td>批次号</td>
                                <td>有效期</td>
                                <td>类型</td>
                                <td>备注</td>
                                <td>操作</td>
                            </tr>
                        </thead>
                        <tbody>
                            <script type="text/template" id="consultants-manage-template">
                                <%_.each(obj,function(e,i){%>
                                    <tr>
                                        <td class='td6'>
                                            <%=e.liquidNo%>
                                        </td>
                                        <td class='td2'>
                                            <%=e.validity%>
                                        </td>
                                        <td class='td3'>
                                            <%=(e.type==1?'L1':'L2')%>
                                        </td>
                                        <td class='td4'>
                                            <span>
                                                <%=e.remark%>
                                            </span>
                                        </td>
                                        <td class='td1'>
                                            <a href='javascript:void(0)' class='edit'>编辑</a>
                                            <a href='javascript:void(0)' deletId='<%=e.liquidId%>' class='delet'>删除</a>
                                        </td>
                                    </tr>
                                    <%})%>
                            </script>
                        </tbody>
                    </table>
                </div>
                <div class="page"></div>
                <!--新建会诊弹窗-->
                <div class="addGroupConsultation" id="addGroupConsultation">
                    <div class="addSugarTitile clearfix" style="position:relative">
                        <p class="fl" style="position:absolute;left:10px;top:15px">新增备案</p>
                        <a class="fr" href="javascript:void(0)" id="addSugarCloseBtn"></a>
                    </div>
                    <div class="addSugarContent clearfix">
                        <div class="list clearfix">
                            <p class='patientName fl'>批次号 : </p>
                            <div class="patientNameSeach text-serach fl">
                                <input type="text" class="patient-name">
                            </div>
                        </div>
                        <div class="list clearfix">
                            <p class="fl">类型：</p>
                            <div class="select_box fl itemSelct" id='text'>
                                <div class="select">
                                    <div class="triangle"></div>
                                    <input type="button" typeId='1' class="select-btn" readonly value="L1" />
                                    <div class="list-show scrollBar" style="display: none;">
                                        <ul class="select-list">
                                            <li typeId='1'>L1</li>
                                            <li typeId='2'>L2</li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="list clearfix">
                            <p class="fl">有效期：</p>
                            <input readonly type="text" class="measureTime laydate-icon" id="addSugarMeasureTime" onclick="laydate({elem:'#addSugarMeasureTime',format: 'YYYY-MM-DD'})">
                            <!-- onclick="laydate({elem:'#date10',format: 'YYYY-MM-DD'})" -->
                        </div>
                        <div class="list listLast clearfix">
                            <p class="fl">备注：</p>
                            <textarea class="fl" maxlength="140" id="addSugarRemark"></textarea>
                        </div>
                        <div class="addSugarBtn fr">
                            <div class='choiceOnePatient'>请选择一个批次号</div>
                            <button class="fl" id="addSugarCancel">取消</button>
                            <button class="active fl" id="addSugarSubmit">确认</button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 质控液备案 -->
            <!--<div class="KeepOnRecord-manage main-template-block">
                <div class="title-search clearfix">
                    <div class="search">
                        <img src="../../../image/home_search_icon.png">
                        <input type="text" placeholder="姓名/住院号/会诊编号" class="txt">
                    </div>
                    <div class="select">
                        <div class="triangle"></div>
                        <input type="button" class="select-btn sex" readonly value="性别" valId="0" />
                        <div class="list-show scrollBar" style="display: none;">
                            <ul class="select-list">
                                <li val="1">男</li>
                                <li val="2">女</li>
                            </ul>
                        </div>
                    </div>
                    <div class="select">
                        <div class="triangle"></div>
                        <input type="button" class="select-btn type" readonly value="会诊类别" valId="0" />
                        <div class="list-show scrollBar" style="display: none;">
                            <ul class="select-list">
                                <li val="1">一般会诊</li>
                                <li val="2">紧急会诊</li>
                            </ul>
                        </div>
                    </div>
                    <div class="select">
                        <div class="triangle"></div>
                        <input type="button" class="select-btn state" readonly value="全部" valId="0" />
                        <div class="list-show scrollBar" style="display: none;">
                            <ul class="select-list">
                                <li val="0">全部</li>
                                <li val="1">未处理</li>
                                <li val="2">已处理</li>
                                <li val="3">已取消</li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn searchBtn">搜索</button>
                    <button class="btn resetBtn">重置</button>
                    <div class="cousultantsBtn">
                        <button class="btn addconsultants">新建会诊</button>
                    </div>
                </div>
                <div class="content">
                    <table cellspacing="0" cellpadding="0">
                        <thead>
                            <tr>
                                <td>会诊编号</td>
                                <td>住院号</td>
                                <td>患者姓名</td>
                                <td>申请人</td>
                                <td>申请时间</td>
                                <td>会诊类别</td>
                                <td>会诊人</td>
                                <td>会诊科室</td>
                                <td style="width:203px;">会诊时间</td>
                                <td>会诊状态</td>
                                <td>操作</td>
                            </tr>
                        </thead>
                        <tbody>
                            <script type="text/template" id="consultants-manage-template">
                                <%_.each(obj,function(e,i){%>
                                    <tr class="<%=((e.status==3||(e.isRead==2&&e.status==2))?'alreadyCheck':'')%>">

                                        <td>
                                            <%=e.id%>
                                        </td>
                                        <td>
                                            <%=e.patient.hospitalizationNo%>
                                        </td>
                                        <td class="name" patientId="<%=e.patientId%>">
                                            <%=e.patient.name%>
                                        </td>
                                        <td>
                                            <%=e.applyUserName%>
                                        </td>
                                        <td>
                                            <%=(e.createTime?e.createTime.split(' ')[0]:e.createTime)%>
                                        </td>
                                        <td class="type" type="<%=e.type%>">
                                            <%=(e.type==1?'一般会诊':'紧急会诊')%>
                                        </td>
                                        <td class="doctor" doctorId="<%=e.doctorId%>">
                                            <%=e.doctorName%>
                                        </td>
                                        <td class="dept" deptId="<%=e.deptId%>">
                                            <%=e.doctorDeptName%>
                                        </td>
                                        <td>
                                            <%=e.consultationTime%>
                                        </td>
                                        <td>
                                            <%if(e.status==1){%>未处理
                                                <%}else if(e.status==2){%>已处理
                                                    <%}else if(e.status==3){%>已取消
                                                        <%}%>
                                        </td>
                                        <td>
                                            <%if(e.status==1){%>
                                                <a href="javascript:void (0)" class="editBtn" consultantsId="<%=e.id%>">修改</a>
                                                <a href="javascript:void (0)" class="delBtn" consultantsId="<%=e.id%>">取消</a>
                                                <%}else if(e.status==2){%>
                                                    <a href="javascript:void (0)" class="checkBtn" isReady="<%=e.isRead%>" consultantsId="<%=e.id%>">查看</a>
                                                    <%}%>
                                        </td>
                                        <td class="remark" style="display:none!important;">
                                            <%=e.applyRemark%>
                                        </td>
                                    </tr>
                                    <%})%>

                            </script>
                        </tbody>
                    </table>
                </div>
                <div class="page"></div>
                <div class="newConsultants hideItem">
                    <div class="pupop-content">
                        <div class="title">
                            <span>新建会诊</span>
                            <a href="javascript:void (0)" class="cancelBtn"></a>
                        </div>
                        <div class="text-content">
                            <div class="item clearfix">
                                <div class="second-item fl">
                                    <span>患者姓名:</span>
                                    <div class="text-serach">
                                        <input type="text" class="patient-name">
                                        <div class="text-show scrollBar" style="display: none;">
                                            <ul class="text-list">
                                                <span>暂无数据</span>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                                <div class="second-item fr">
                                    <span>会诊类别:</span>
                                    <div class="select">
                                        <div class="triangle"></div>
                                        <input type="button" class="select-btn consultants-type" readonly value="" />
                                        <div class="list-show scrollBar" style="display: none;">
                                            <ul class="select-list">
                                                <li val="1">一般会诊</li>
                                                <li val="2">紧急会诊</li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="item clearfix">
                                <div class="second-item fl">
                                    <span>会诊科室:</span>
                                    <div class="select">
                                        <div class="triangle"></div>
                                        <input type="button" class="select-btn consultants-dept" readonly value="" />
                                        <div class="list-show scrollBar" style="display: none;">
                                            <ul class="select-list deptList"></ul>
                                        </div>
                                    </div>
                                </div>
                                <div class="second-item fr">
                                    <span>会诊医生:</span>
                                    <div class="select">
                                        <div class="triangle"></div>
                                        <input type="button" class="select-btn consultants-doctor" readonly value="" />
                                        <div class="list-show scrollBar" style="display: none;">
                                            <ul class="select-list doctorList">

                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="item clearfix">
                                <span class="fl" style="margin-right: 5px;">申请概述:</span>
                                <div class="text">
                                    <textarea class="consultants-text"></textarea>
                                </div>

                            </div>
                            <div class="item tips">请确定信息完全填写正确</div>
                        </div>

                        <div class="btn-content">
                            <button class="btn cancelBtn">取消</button>
                            <button class="btn sureBtn">确定</button>
                        </div>
                    </div>
                </div>
                <div class="del-consultants hideItem">
                    <div class="pupop-content">
                        <div class="title">
                            <span>取消会诊</span>
                            <a href="javascript:void (0)" class="cancelBtn"></a>
                        </div>
                        <div class="text-content">
                            确定取消会诊吗？
                        </div>
                        <div class="btn-content">
                            <button class="btn cancelBtn">取消</button>
                            <button class="btn sureBtn">确定</button>
                        </div>
                    </div>
                </div>
            </div>-->

            <!--批量删除-->
            <div class="all-del hideItem">
                <div class="content">
                    <div class="title">
                        <span>删除</span>
                        <a class="cancelBtn"></a>
                    </div>
                    <div class="tips">
                        确定是否移除？
                    </div>
                    <div class="btn">
                        <div class="cancelBtn">取消</div>
                        <div class="sureBtn">确定</div>
                    </div>
                </div>
            </div>

            <!--删除质控液备案-->
            <div class="KeepOnRecord-del hideItem">
                <div class="content">
                    <div class="title">
                        <span>删除</span>
                        <a class="cancelBtn"></a>
                    </div>
                    <div class="tips">
                        确定是否移除？
                    </div>
                    <div class="btn">
                        <div class="cancelBtn">取消</div>
                        <div class="sureBtn">确定</div>
                    </div>
                </div>
            </div>

        </div>
    </div>

    <div class="PopMask"></div>
    <!--修改密码弹窗-->
    <div class="updatePwdPop" id="updatePwdPop"></div>

    <script type="text/javascript" src="../../../js/control/underscore.min.js"></script>
    <script type="text/javascript" src="../../../js/control/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="../../../js/control/laydate.min.js"></script>
    <script type="text/javascript" src="../../../js/control/jq-migrate-1.2.1.min.js"></script>
    <script type="text/javascript" src="../../../js/control/jquery.jqprint-0.3.js"></script>

    <script type="text/javascript" src="../../../js/custom/config.js"></script>
    <script type="text/javascript" src="../../../js/custom/common.js"></script>
    <script type="text/javascript" src="../../../js/custom/createPage.min.js"></script>

    <script type="text/javascript" src="../../../js/custom/qualityControl.js"></script>
</body>

</html>